package com.njegovanobradovic.icet.pages;

import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.njegovanobradovic.icet.facade.Controller;

public class StatusPage {
	@Persist
	private String message;
	@Inject
	private Controller controller;
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public boolean getLoggedUser(){
		if (controller.isLoggedIn()) {
			return true;
		}
		return false;
	}

}
